package com.xiaoluo.lottery.common.weixin.auth.beans;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Project : lottery
 * Package : com.xiaoluo.lottery.common.weixin.auth.beans
 * Created by Willian.
 * Date  : 2016/4/7 10:36.
 */
public class AuthToken {


    private Integer code;
    private String accessToken;
    private String data;
    private String msg;
    private Long expiresIn;

    public AuthToken(@JsonProperty("code") final Integer code,
                     @JsonProperty("access_token") final String accessToken,
                     @JsonProperty("data") final String data,
                     @JsonProperty("msg") final String msg,
                     @JsonProperty("expires_in") final Long expiresIn) {
        this.code = code;
        this.accessToken = accessToken;
        this.data = data;
        this.msg = msg;
        this.expiresIn = expiresIn;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Long expiresIn) {
        this.expiresIn = expiresIn;
    }
}
